<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String valor=request.getParameter("cse-search-input-box-id"); %>
<jsp:directive.include file="/header.html" />
<body onload="javascript:document.getElementById('frameBusqueda').contentWindow.executeQuery('<%=valor%>');">
<jsp:directive.include file="/header.jsp" />
<script language="javascript">
function resizeIframeToFitContent(iframe)
{
    iframe.height=parent.frames[iframe.id].document.body.scrollHeight;
}

function doIframe()
{
	o=document.getElementsByTagName('iframe');
	for(i=0;i<o.length;i++)
	{
		if(/bautoHeightb/.test(o[i].className))
		{
			setHeight(o[i]);
			addEvent(o[i],'load', doIframe);
		}
	}
}

function setHeight(e)
{
	if(e.contentDocument)
	{
		e.height = e.contentDocument.body.offsetHeight + 35;
	}
	else
	{
		e.height = e.contentWindow.document.body.scrollHeight;
	}
}

function addEvent(obj, evType, fn)
{
	if(obj.addEventListener)
	{
		obj.addEventListener(evType, fn,false);
		return true;
	}
	else if (obj.attachEvent)
	{
		var r = obj.attachEvent("on"+evType, fn);
		return r;
	}
	else
	{
		return false;
	}
}

if (document.getElementById && document.createTextNode)
{
	addEvent(window,'load', doIframe);
}
</script>
<!-- onload="javascript:resizeIframeToFitContent(this)" -->
<iframe onload="javascript:resizeIframeToFitContent(this)" id="frameBusqueda" class="autoHeight" scrolling="auto" name="frameBusqueda" src="busqueda.html" align="middle" height="100%" style="width: 100%;"></iframe>
<jsp:directive.include file="/footer.html" />